/**
 * 
 */
package org.t2.game.server.foundation.player;

import org.gaming.fakecmd.side.common.InternalCmdRegister;
import org.gaming.fakecmd.side.common.InternalCmdRegister.InternalCmdMessage;
import org.gaming.fakecmd.side.game.PlayerCmdRegister;

import akka.actor.AbstractActor;

/**
 * @author YY
 *
 */
public class PlayerActor extends AbstractActor {

	@Override
	public Receive createReceive() {
		return receiveBuilder().match(ProtocolMessage.class, msg -> {
			//协议处理
			PlayerCmdRegister.INS.handle(msg);
			
		}).match(InternalCmdMessage.class, msg -> {
			//内部消息处理
			InternalCmdRegister.INS.handle(msg);
			
		}).build();
	}
}
